# docker stop $(docker ps -a | grep "dockeryezi.com/tarsupload/testjenkins" | awk '{print $1}')
# docker rm $(docker ps -a | grep "dockeryezi.com/tarsupload/testjenkins" | awk '{print $1}')
# docker rmi $(docker images | grep "dockeryezi.com/tarsupload/testjenkins" | awk '{print $3}')

docker stop dockeryezi.com/tarsupload/servercheckdirtydata:v${VERSION_ID}
docker rm dockeryezi.com/tarsupload/servercheckdirtydata:v${VERSION_ID}
docker rmi dockeryezi.com/tarsupload/servercheckdirtydata:v${VERSION_ID}

docker build -t dockeryezi.com/tarsupload/servercheckdirtydata:v${VERSION_ID} .
docker push dockeryezi.com/tarsupload/servercheckdirtydata:v${VERSION_ID}

# 通过sshPublish 再k8s master执行
# kubectl patch -n tars-dev TServer test-globalws  -p="[{\\"op\\":\\"add\\",\\"path\\":\\"/spec/release\\",\\"value\\":{\\"id\\":\\"v${build_id}\\",\\"image\\":\\"dockeryezi.com/tarsupload/globalws:v${build_id}\\"}}]" --type="json"